package jwcb.javapjframework.ms_template.service.controller;

import jwcb.javapjframework.common.domain.domain.R;
import jwcb.javapjframework.ms_template.service.service.CacheTestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/test/cache")
public class CacheTestController {


    @Autowired
    private CacheTestService cacheTestService;
    @GetMapping("/cloth/get")
    public R<Integer> clothGet(Long proId) {
        return R.ok(cacheTestService.clothGet(proId));
    }
}
